import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { UserInfoResolver } from './core/service/auth/auth.resolve.service';

const appRoutes: Routes =
	[
		{
			path: 'main',
			loadChildren: '../app/main/main.module#MainModule',
			// resolve: {
			// 	user: UserInfoResolver
			// }
		},
		{
			path: 'login', component: LoginComponent
		},
		{ path: '', redirectTo: '/login', pathMatch: 'full' }];
@NgModule({
	imports: [
		RouterModule.forRoot(
			appRoutes,
			{
				enableTracing: false, // <-- debugging purposes only
				useHash: true
			}
		)
	],
	exports: [
		RouterModule
	],
})
export class AppRouteMD {
	constructor() {

	}
}
